<?php 
if (isset($_POST['mdp']) && isset($_POST['pseudo'])) {
	$mdp = secure ($_POST['mdp']);
	$pseudo = secure ($_POST['pseudo']);
	
	if (verification($pseudo, md5($mdp))) {
		header('Location: accueil.html');
	} else {
		header('Location: connexion-Pseudo_ou_mot_de_passe_invalide.html');
	}
} else {
	header('Location: connexion-Tous_les_champs_doivent_etre_remplis.html');
}
?>